#coding=utf-8
import os
import logging

BASE_DIR = os.path.dirname(os.path.dirname(__file__))
DB_DIR = os.path.join(BASE_DIR,'db')
ADMIN = os.path.join(BASE_DIR,'admin')
ALL_USERS = os.path.join(BASE_DIR,'allusers')
A = os.path.join(BASE_DIR,'db','s')
LOG = os.path.join(BASE_DIR,'log')

logging.basicConfig(filename = os.path.join(os.getcwd(), 'log.txt'), level = logging.DEBUG)
logging.debug('logging start')

TRANSACTION={
    'repay':{'action':'plus','interest':0},  #还款
    'withdraw':{'action':'minus','interest':0.05},  #取现
    'transfer':{'action':'minus','interest':0.05},  #转账
    'consume':{'action':'minus','interest':0},  #消费
    'saving':{'action':'plus','interest':0},  #存款
}